package org.teacup.eightdays.mobileserver.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;
import org.teacup.eightdays.mobileserver.model.Version;
import org.teacup.eightdays.mobileserver.services.VersionService;

/**
 * 版本信息Controller
 * 
 * @author Abner
 * 
 */
@Controller
public class VersionController extends BaseMobileServerConntroller {
	public ModelAndView getVersion(HttpServletRequest request, HttpServletResponse response) {
		Version version = VersionService.getVersion();
		return super.getModelAndView(version);
	}
}
